package cn.service.feign;

import cn.service.entiy.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.ArrayList;
import java.util.Map;

@FeignClient("Order")
public interface OrderFeign {

    @PostMapping("api/order/buy")
    int buyGoods(Order order);

    @PostMapping("api/order/bill")
    ArrayList<Order> getBill(Map map);
}
